package com.graden.background.controller.sysmenu;


import com.graden.background.common.utils.apiresult.AbstractApiResult;
import com.graden.background.service.sysmenu.ISysMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  系统菜单前端控制器
 * </p>
 *
 * @author zjf
 * @since 2019-03-21
 */
@RestController
@RequestMapping("/menu")
@Api(tags = {"系统菜单"})
public class SysMenuController {

	@Autowired
	ISysMenuService iSysMenuService;

	@PostMapping("/get")
	@ApiOperation(value = "获取菜单")
	public AbstractApiResult getMenu() {
		return AbstractApiResult.success(iSysMenuService.getMenuNodeTreeByOnlyShow());
	}

}
